package com.fafian.publish;

import java.math.BigInteger;
import java.util.Random;

public class RequestMessage  {

	private Object content1;
	private BigInteger uniqueId;
	private BigInteger busId;
	private String target;
	
	RequestMessage(String target, Object obj, BigInteger busId){
		this.content1 = obj;
		this.target = target;
		 int n = 16;
	        Random r = new Random();
	        byte[] b = new byte[n];
	        r.nextBytes(b);
	        uniqueId = new BigInteger(b);
	   this.busId = busId;
	}
	
	
	Object getContent(){
		return content1;
	}
	
	BigInteger getUniqueId(){
		return uniqueId;
	}
	
	String getTarget(){
		return target;
	}
	
	BigInteger getBusId(){
		return busId;
	}
	
}
